package com.tangji.signaltower.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2020-09-14
 * Time: 14:56
 * <p>
 * 对灰名单用户做特殊处理
 */
@RestController
@RequestMapping("/rate")
public class GrayListController {
    private static final Logger logger = LoggerFactory.getLogger(GrayListController.class);

    public static String getWarningListRedisKey(String accessToken, String productCode, long timeStamp) {
        return new StringBuilder(accessToken)
                .append("-")
                .append(productCode)
                .append("-")
                .append(timeStamp).toString();
    }
}
